package com.ruoyi.workflow.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 审批记录对象 approval_records
 *
 * @author 周志雄
 * @date 2024-03-15
 */
@Data
public class ApprovalRecordsDto{
    private static final long serialVersionUID = 1L;

    /** 审批节点名称 */
    @Excel(name = "审批节点名称")
    @ApiModelProperty("审批节点名称")
    private String approvalNodeName;

    /** 审批人名称 */
    @Excel(name = "审批人名称")
    @ApiModelProperty("审批人名称")
    private String approverName;

    /** 1同意 2拒绝*/
    @Excel(name = "1同意 2拒绝")
    @ApiModelProperty("1同意 2拒绝")
    private String approvalStatus;

    /** 审批意见 */
    @Excel(name = "审批意见")
    @ApiModelProperty("审批意见")
    private String approvalComment;

    /** 审批附件文件URL */
    @Excel(name = "审批附件文件URL")
    @ApiModelProperty("审批附件文件URL")
    private String approvalFileUrl;

    /** 审批附件图片URL */
    @Excel(name = "审批附件图片URL")
    @ApiModelProperty("审批附件图片URL")
    private String approvalImageUrl;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("审批时间")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;
}
